Skip to content

fix(agents): hide disabled agents everywhere and reflect install/removal live#82

Merged
RealZST merged 2 commits into
mainfrom
fix/agent-visibility-consistency
Jun 8, 2026
Merged

fix(agents): hide disabled agents everywhere and reflect install/removal live#82
RealZST merged 2 commits into
mainfrom
fix/agent-visibility-consistency

Conversation

@RealZST

@RealZST RealZST commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Summary

Follow-up to #81 (Agent Visibility). That PR shipped the Detected only toggle and made it disable undetected agents, but disabled stayed a half-respected, Overview-only concept β€” a disabled agent still showed up in Marketplace, the Agents page, and install targets. This PR makes that consistent and adds live detection.

Two related fixes that make the Detected only / agent-disable behaviour consistent and live.

Disabled agents are now hidden everywhere

In 21691dc. Disabling an agent (or Detected only auto-disabling an undetected one) used to only hide it from the Overview, sidebar, and Extensions filter β€” it still showed up in Marketplace, the Agents page, and install targets, which gate on detected only. Now every consumption surface respects enabled:

  • Install targets (Marketplace, install dialogs, extension detail) filter by detected && enabled, so disabled agents aren't offered.
  • The Agents sidebar hides disabled agents (cross-referencing the agent store, since AgentDetail has no enabled field; defaults to visible when unknown so the list never flashes empty).
  • Backend "install to all detected" fallbacks skip disabled agents.

With every surface respecting enabled, the per-view agentVisibility special-casing (detected ? enabled && detected : enabled) is redundant and removed β€” Detected only hiding is now carried entirely by the reconcile that disables undetected agents. One concept (enabled), one place that owns visibility β†’ enabled.

Agent install/removal is reflected live

In 41f3dc7. runScan (startup + window focus) now also refetches agents, so adding or removing an agent's config dir outside the app shows up without a restart (detect() is live). The Detected only reconcile is now bidirectional: it disables undetected agents and re-enables ones it had disabled once they're detected again (e.g. a config dir removed then restored).

Verification

  • tsc, biome, and vitest (231 tests) all pass.
  • Manually verified: disabling an agent removes it from Marketplace, the Agents page, and install targets; Detected only + adding/removing a config dir reflects live and reversibly, with no flicker on toggle.

πŸ€– Generated with Claude Code

RealZST and others added 2 commits June 8, 2026 23:06
runScan (startup + window focus) now also refetches agents, so an agent config dir added or removed outside the app shows up without a restart (detect() is live).

The Detected-only reconcile is now bidirectional: it disables agents that aren't detected and re-enables ones it had disabled once they are detected again (e.g. a config dir removed then restored), keeping the snapshot in sync.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Disabling an agent (including ones Detected-only auto-disables) now hides it consistently across all surfaces, not just the Overview:

- Install targets (Marketplace, install dialogs, extension detail) filter by detected && enabled, so disabled agents are not offered.
- The Agents sidebar hides disabled agents, cross-referencing the agent store since AgentDetail carries no enabled field (defaults to visible when unknown so the list never flashes empty).
- Backend "install to all detected" fallbacks skip disabled agents.

With every surface respecting enabled, the per-view agentVisibility checks (detected ? enabled && detected : enabled) are redundant and removed; Detected-only hiding is now carried entirely by the reconcile that disables undetected agents. One concept (enabled), one place that owns visibility to enabled.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@RealZST RealZST merged commit 54e59c7 into main Jun 8, 2026
3 checks passed
@RealZST RealZST deleted the fix/agent-visibility-consistency branch June 8, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant